package com.twsjw.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Userinfo entity. @author MyEclipse Persistence Tools
 */

public class Userinfo implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String username;
	private String userpass;
	private Set houseinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Userinfo() {
	}

	/** minimal constructor */
	public Userinfo(String username, String userpass) {
		this.username = username;
		this.userpass = userpass;
	}

	/** full constructor */
	public Userinfo(String username, String userpass, Set houseinfos) {
		this.username = username;
		this.userpass = userpass;
		this.houseinfos = houseinfos;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserpass() {
		return this.userpass;
	}

	public void setUserpass(String userpass) {
		this.userpass = userpass;
	}

	public Set getHouseinfos() {
		return this.houseinfos;
	}

	public void setHouseinfos(Set houseinfos) {
		this.houseinfos = houseinfos;
	}

}